package collection;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Vector;
import java.util.concurrent.CopyOnWriteArrayList;


public class ListDemo {

    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        list.add("");
        list.get(1);
        list.remove(1);

        Vector vector = new Vector();
        vector.add("");
        vector.get(1);
        vector.remove(1);

        List<Object> objects = Collections.synchronizedList(new ArrayList<>());
        objects.add("");


        CopyOnWriteArrayList copyOnWriteArrayList = new CopyOnWriteArrayList();
        copyOnWriteArrayList.add("");
        copyOnWriteArrayList.get(0);
        copyOnWriteArrayList.remove(1);
    }

}
